package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class CategoryUpdateNewDTO implements Serializable {
    /**
     * 记录id
     */
    @NotNull(message = "修改失败,id必须提交!")
    @ApiModelProperty(value = "记录id",required = true)
    private Long id;
    /**
     * 类别名称
     */
    @NotNull(message = "修改失败!,类别名称必须提交!")
    @NotBlank(message = "修改失败,类别名称不能为空白字符")
    @ApiModelProperty(value = "类别名称",required = true)
    private String name;
    /**
     * 关键词
     */
    @ApiModelProperty(value = "关键词",required = true)
    private String keywords;
    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "自定义排序序号",required = true)
    private Integer sort;
    /**
     * 图标图片的url
     */
    @ApiModelProperty(value = "图标图片的url",required = true)
    private String icon;
}
